@extends('layout.normalize')

@section('title', '抽奖后台')

@section('css')
    <link href="/css/weui.min.css" rel="stylesheet">
@endsection

@section('content')

    @foreach($lottery_list as $lottery)
        @if($lottery->prize->name != '谢谢参与')
        <div class="weui-form-preview">
            <div class="weui-form-preview__hd">
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label">{{ $lottery->user->name }}</label>
                    <em class="weui-form-preview__value">{{ $lottery->prize->name }}</em>
                </div>
            </div>
            <div class="weui-form-preview__bd">
                <div class="weui-form-preview__item">
                    <label class="weui-form-preview__label">{{ $lottery->user->number }}</label>
                    <span class="weui-form-preview__value">{{ $lottery->created_at }}</span>
                </div>
            </div>
        </div>
        <br>
        @endif
    @endforeach
@endsection

@section('js')
@endsection